/**********************************************************
 * AnnouncementsManagerAction.java
 *
 * Created by Ashutosh
 * Last modified Date: Aug 25, 2008 11:13:40 AM by Ashutosh
 * Revision: <svn revision #> 
 * Version : 0.1
 * Copyright (c) 2008 - 2009 cyberThink Infotech Pvt. Ltd., All rights reserved.
 **********************************************************/

package com.printeverywhere.action;

import java.util.List;

import org.apache.log4j.Logger;

import com.printeverywhere.delegator.AnnouncementServiceDelegator;
import com.printeverywhere.dto.Announcement;

// TODO: Auto-generated Javadoc
/**
 * The Class AnnouncementsManagerAction.
 */
public class AnnouncementsManagerAction extends AdminEngineManagement {
	
	/** Logger for this class. */
	private static final Logger logger = Logger.getLogger(AnnouncementsManagerAction.class);

	/**
	 * Gets the all announcement.
	 * 
	 * @return the all announcement
	 * 
	 * @throws Exception the exception
	 */
	public String getAllAnnouncement() throws Exception {
		if (logger.isDebugEnabled()) {
			logger.debug("getAllAnnouncement() - start"); //$NON-NLS-1$
		}

		announcementList = AnnouncementServiceDelegator.getList();

		if (logger.isDebugEnabled()) {
			logger.debug("getAllAnnouncement() - end"); //$NON-NLS-1$
		}
		return SUCCESS;
	}

	/**
	 * Copy announcements manager.
	 * 
	 * @return the string
	 * 
	 * @throws Exception the exception
	 */
	public String copyAnnouncementsManager() throws Exception {
		return SUCCESS;
	}

	/**
	 * Insert or update.
	 * 
	 * @return the string
	 * 
	 * @throws Exception the exception
	 */
	public String insertOrUpdate() throws Exception {
		return SUCCESS;
	}

	/**
	 * Delete employee.
	 * 
	 * @return the string
	 * 
	 * @throws Exception the exception
	 */
	public String deleteEmployee() throws Exception {
		return SUCCESS;
	}

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** The announcement list. */
	private List<Announcement> announcementList;
	
	/**
	 * Gets the announcement list.
	 * 
	 * @return the announcement list
	 */
	public List<Announcement> getAnnouncementList() {
		return announcementList;
	}

	/**
	 * Sets the announcement list.
	 * 
	 * @param announcementList the new announcement list
	 */
	public void setAnnouncementList(List<Announcement> announcementList) {
		this.announcementList = announcementList;
	}
}